package com.teach.basic.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: Hzz
 * @Date: Created in 0:33 2020/5/16
 */
public class FoodDTO implements Serializable {

    @NotBlank
    private String id;

    @NotBlank
    @JsonProperty("category_type")
    private String categoryType;

    @NotBlank
    private String name;

    @NotBlank
    @JsonProperty("merchant_id")
    private String merchantId;

    @NotNull
    private Double price;

    @NotBlank
    @JsonProperty("img_url")
    private String imgUrl;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(String categoryType) {
        this.categoryType = categoryType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }
}
